package game_play_strategy.tools;

import java.util.ArrayList;

public class Player 
{
	private int player_id;


	private String name;
	private String mail;
	private String IP_address;
	private double user_latitude;
	private double user_longitude;
	//private String square_start;
	private double center_lat;
	private double center_lon;
	private String square_now;
	private String imei;
	private int players_turn = 0;
	private int available = 0;





	private ArrayList<Heroes> heroes= new ArrayList<Heroes>();


	public void set_heroes(ArrayList<Heroes> heroes) 
	{
		this.heroes = heroes;
	}

	public void set_player_id(int playerId) 
	{
		player_id = playerId;
	}

	public void set_name(String name)
	{
		this.name = name;
	}
	
	public void set_mail(String mail)
	{
		this.mail = mail;
	}
	
	public void set_user_latitude(double user_latitude)
	{
		this.user_latitude = user_latitude;
	}
	
	public void set_user_longitude(double user_longitude)
	{
		this.user_longitude = user_longitude;
	}
	
	//public void set_center(String center)
	//{
	//	this.center = center;
	//}
	
	public void set_square_now(String square_now)
	{
		this.square_now = square_now;
	}
	
	public void set_center_lat(double center_lat)
	{
		this.center_lat = center_lat;
	}
	
	public void set_center_lon(double center_lon)
	{
		this.center_lon = center_lon;
	}
	
	public void set_IP_address(String IP_address)
	{
		this.IP_address = IP_address;
	}

	public void set_imei(String imei) 
	{
		this.imei = imei;
	}
	
	public void set_players_turn(int playersTurn) 
	{
		players_turn = playersTurn;
	}
	
	public void set_available(int available) 
	{
		this.available = available;
	}
	
	
	
	public void add_hero(Heroes hero)
	{
		this.heroes.add(hero);
	}
	
	public void set_hero(Heroes hero, int index)
	{
		this.heroes.set(index, hero);
	}
	
	public int get_player_id() 
	{
		return player_id;
	}

	
	public ArrayList<Heroes> get_heroes() 
	{
		return heroes;
	}
	
	public String get_name()
	{
		return this.name;
	}
	
	public String get_mail()
	{
		return this.mail;
	}
	
	public double get_user_latitude()
	{
		return this.user_latitude;
	}
	
	public double get_user_longitude()
	{
		return this.user_longitude;
	}
	
	//public String get_square_start()
	//{
	//	return this.square_start;
	//}
	
	public String get_square_now()
	{
		return this.square_now;
	}
	
	public double get_center_lat()
	{
		return this.center_lat;
	}
	
	public double get_center_lon()
	{
		return this.center_lon;
	}
	
	public String get_IP_address()
	{
		return this.IP_address;
	}
	
	public int get_players_turn() 
	{
		return players_turn;
	}

	public String get_imei() 
	{
		return imei;
	}
	
	public Heroes get_hero(int index)
	{
		return this.heroes.get(index);
	}
	
	public int get_available() 
	{
		return available;
	}
	
	public void calculate_postion()
	{
		
	}
	
	public Player(int player_id, String name, String mail, String IP_address, double user_latitude, double user_longitude,
				  double center_lat, double center_lon, String square_now, String imei, int players_turn, int available) 
	{
		this.player_id = player_id;
		this.name = name;
		this.mail = mail;
		this.IP_address = IP_address;
		this.user_latitude = user_latitude;
		this.user_longitude = user_longitude;
		this.center_lat = center_lat;
		this.center_lon = center_lon;
		this.square_now = square_now;
		this.imei = imei;
		this.players_turn = players_turn;
		this.available = available;
	}
	
	public Player()
	{
		
	}
}
